﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NetFrameworkExtensions.PresentationLayer
{
  public interface IViewModel
  {
    string Title { get; }

    string Formatted { get; }

    object View { get; set; }

    ViewMode ViewMode { get; set; }

    bool IsReadOnly { get; }

    bool IsEditable { get; }

    object GetModel();

    void SetModel(object model);

    event EventHandler DoneEvent;

    event EventHandler CancelEvent;
  }
}
